package com.eagle.scali.usercenter.feignclient;


import com.eagle.scali.usercenter.domain.dto.content.ShareDTO;
import com.eagle.scali.usercenter.feignclient.fallbackfactory.ContentCenterFeignClientFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;


@FeignClient(name = "content-center",
    fallbackFactory =  ContentCenterFeignClientFallbackFactory.class
)
public interface ContentCenterFeignClient {
    /**
	 * 这里无法使用List<UserDTO>传参，可能UserDTO里面有其它非基本类型
     * @param userIds
     * @return
     */
	@PostMapping("/shares/findUsers")
	List<ShareDTO> findShareListByUserIds(@RequestBody List<String> userIds);


}
